package com.shop.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;
import org.springframework.transaction.annotation.Transactional;


@Data
@TableName("sp_attribute")
public class Attribute {
    @TableId(value = "attr_id",type = IdType.AUTO)
    private Integer attr_id;
    @TableField("attr_name")
    private String attr_name;
    @TableField("cat_id")
    private Integer cat_id;
    @TableField("attr_sel")
    private String attr_sel;
    @TableField("attr_write")
    private String attr_write;
    @TableField("attr_vals")
    private String attr_vals;
    @TableField("delete_time")
    private Integer delete_time;

    public Attribute() {
    }

    public Attribute(Integer cat_id,Integer attr_id, String attr_name,  String attr_sel, String attr_vals) {
        this.attr_id = attr_id;
        this.attr_name = attr_name;
        this.cat_id = cat_id;
        this.attr_sel = attr_sel;
        this.attr_vals = attr_vals;
    }

    public Attribute(String attr_name, Integer cat_id, String attr_sel, String attr_write, String attr_vals) {
        this.attr_name = attr_name;
        this.cat_id = cat_id;
        this.attr_sel = attr_sel;
        this.attr_write = attr_write;
        this.attr_vals = attr_vals;
    }

    public void setAttrId(Integer attr_id) {
        this.attr_id = attr_id;
    }

    public void setAttrName(String attr_name) {
        this.attr_name = attr_name;
    }

    public void setCatId(Integer cat_id) {
        this.cat_id = cat_id;
    }

    public void setAttrVals(String attr_vals) {
        this.attr_vals = attr_vals;
    }

    public void setDeleteTime(Integer delete_time) {
        this.delete_time = delete_time;
    }

    public void setAttrSel(String attr_sel) {
        this.attr_sel = attr_sel;
    }

    public void setAttrWrite(String attr_write) {
        this.attr_write = attr_write;
    }
}
